package com.net;
/**
 * 错误信息类
 * @author mjh
 *
 */
public final class ClientError
{
	/**
	 * 网路连接错误和登陆失败都返回该错误代码
	 */
	public final static int ERROR_CONNECTION = 0x1;
	/**
	 * 解析html文件错误，包括解析时空指针
	 */
	public final static int ERROR_PRASE_HTML = 0x2;
	/**
	 * 程序内部参数错误
	 */
	public final static int ERROR_INTERVAL = 0x3;
	/**
	 * 用户名或密码错误
	 */
	public final static int ERROR_PASSWD = 0x4;
	/**
	 * 网络链接开关未打开
	 */
	public final static int ERROR_NETWORK = 0x5;
	/**
	 * 网络链接超时
	 */
	public final static int ERROR_TIMEOUT = 0x6;
	
	/**
	 * 错误代码
	 */
	private int code;
	/**
	 * 错误信息
	 */
	private String message;
	
	public ClientError(int code, String message)
	{
		this.code = code;
		this.message = message;
	}
	public int getCode()
	{
		return this.code;
	}
	public String getMessage()
	{
		return this.message;
	}
	
}
